﻿using Data.implement;
using System.Collections.Generic;

namespace Data
{
    public interface IUserRepositery
    {
        User GetOrInsertUser(WeiXinUser user, int? carType = null);

        User SetUserCar(int userId,int carType);

        bool AddChargingTime(int userId, int targetId);

        User GetUser(string OpenId);

        User GetUserByGuid(string Guid);

        bool DeleteUser(User entity);

        List<User> GetTopChargingUsers(int Limit);
    }
}
